package com.itheima.stock.pojo.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

//权限添加按钮
@ApiModel(description = "权限添加按钮")
@Data
public class PermissionForAdd {
    //菜单id
//    @ApiModelProperty(value = "菜单id", position = 0)
//    @JsonSerialize(using = ToStringSerializer.class)
//    private Long id;
    //菜单等级 0 顶级目录 1.目录 2 菜单 3 按钮
    @ApiModelProperty(value = "菜单等级 0 顶级目录 1.目录 2 菜单 3 按钮", position = 1)
    private String type;

    //菜单名称
    @ApiModelProperty(value = "菜单名称", position = 2)
    private String title;

    //父级菜单id
    @ApiModelProperty(value = "父级菜单id", position = 3)
    private String pid;

    //只有菜单类型有名称，默认是路由的名称
    @ApiModelProperty(value = "只有菜单类型有名称，默认是路由的名称", position = 4)
    private String url;

    //名字
    @ApiModelProperty(value = "名字", position = 5)
    private String name;

    //icon
    @ApiModelProperty(value = "icon", position = 6)
    private String icon;

    //基于springSecrutiry约定的权限过滤
    @ApiModelProperty(value = "基于springSecrutiry约定的权限过滤", position = 7)
    private String perms;

    //请求方式
    @ApiModelProperty(value = "请求方式", position = 8)
    private String method;

    //vue按钮回显控制辨识
    @ApiModelProperty(value = "vue按钮回显控制辨识", position = 9)
    private String code;

    //排序
    @ApiModelProperty(value = "排序", position = 10)
    private String orderNum;

}
